home *** CD-ROM | disk | FTP | other *** search
- Path: csus.edu!csus
- From: sac46826@csus.edu (Mike Billard)
- Newsgroups: comp.lang.c++
- Subject: Re: MSVC++4.0 compile error- help needed
- Date: Sat, 16 Mar 96 23:28:28 GMT
- Organization: California State University Sacramento
- Message-ID: <4ifird$t0t@news.csus.edu>
- References: <4if0if$m68@news.csus.edu> <4ifdnn$m8o@nuacht.iol.ie>
- NNTP-Posting-Host: @u0103-p10.dialin.csus.edu
- X-Newsreader: News Xpress 2.0 Beta #0
-
- Thanks, I'll give that a try.
- In article <4ifdnn$m8o@nuacht.iol.ie>, David Byrden <goyra@iol.ie> wrote:
- >
- >
- >>>However, when I create a Windows program (MDI, SDI, Dialog-based) and
- >>> add the CTest.cpp to the project and the CTest.h to a simple dialog
- >>> class that I create, upon building the project I receive the following
- >>> message:
- >
- >>> :\Projects\test\CTest.cpp(23) : fatal error C1010: unexpected end of
- >>> file while looking for precompiled header directive
- >
- >
- > Visual C++ can speed up its compilations by using a "precompiled
- >header". The reason is that you often include many large header files
- >which never change, and which get compiled repeatedly. This feature lets
- >the compiler "predigest" them just once and store the results in a PCH
- >file.
- >
- > I guess that precompiled headers are the default for MFC programs,
- >because of the large MFC headers. You can dig around in your project
- >settings and disable the feature.
- >
- > If you want to actually use it, you must include the header file
- >STDAFX.H at the top of each CPP file. The predigested stuff is whatever
- >you put in STDAFX.H
- >
- >
- > David
- >
- >
- >
-
- -Mike Billard
-
- email: billardm@csus.edu
-